package com.imooc.miaosha.redis;

public class MiaoshaUserKey extends BasePrefix {
    // 2天
   private static  final  Integer TOKEN_EXPIRE = 3600 * 24 *2;
   private MiaoshaUserKey(int expireSeconds, String prefix){
       super(expireSeconds,prefix);
   }
   // 有效期 1小时
   public static MiaoshaUserKey token = new MiaoshaUserKey(TOKEN_EXPIRE,"tk");
   public static MiaoshaUserKey getById = new MiaoshaUserKey(0,"id");

}
